package top.byteio.common.core.constants;

/**
 * 用户常量
 *
 * @author lerry
 * @since 2023/6/21 13:55
 */

public final class UserConstants {
    /**
     * 超级管理员的唯一标志
     */
    public static final String ROOT_USER_ID = "1L";

    /**
     * 校验是否唯一的返回标识
     */
    public final static boolean UNIQUE = true;
    public final static boolean NOT_UNIQUE = false;

    /**
     * 用户名长度限制
     */
    public static final int USERNAME_MIN_LENGTH = 2;
    public static final int USERNAME_MAX_LENGTH = 20;

    /**
     * 密码长度限制
     */
    public static final int PASSWORD_MIN_LENGTH = 5;
    public static final int PASSWORD_MAX_LENGTH = 20;
}
